import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/page/HomePage'
import AllRaterate from '@/page/allRaterate'
import BackRate from '@/page/BackRate'
import SprendPage from '@/page/SprendPage'

import RegisterPage from '@/page/RegisterPage'



Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomePage,
      meta:{title:"总收益",icon:require('../assets/shouyi_icon@2x.png')}
      //
    },
    {
      path:'/rate',
      name:'allRaterate',
      meta:{title:"总分润",icon:require('../assets/fanyong_icon@2x.png')},
      component:AllRaterate
    },
    {
      path:'/backRate',
      name:'backRate',
      meta:{title:"总返佣",icon:require('../assets/fanyong_icon@2x.png')},
      component:BackRate
    },
    {
      path:'/sprend',
      name:'sprend',
      meta:{title:"推广人数",icon:require('../assets/tuiguang_icon@2x.png')},
      component:SprendPage
    },
    {
      path:'/register',
      name:'register',
      meta:{title:"注册人数",icon:require('../assets/tuiguang_icon@2x.png')},
      component:RegisterPage
    },
    //
  ]
})


export default router